import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var BasicFormViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(BasicFormViewmodelForm, _super);
    function BasicFormViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'zzbh_d33b2ee1_avse',
            name: "{{zzbh_d33b2ee1_avse}}",
            binding: 'zzbh',
            updateOn: 'blur',
            defaultI18nValue: '组织编号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], BasicFormViewmodelForm.prototype, "zzbh", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zzmc_50884f85_x59n',
            name: "{{zzmc_50884f85_x59n}}",
            binding: 'zzmc',
            updateOn: 'blur',
            defaultI18nValue: '组织名称',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], BasicFormViewmodelForm.prototype, "zzmc", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zzlb_54e02c1d_sqn7',
            name: "{{zzlb_54e02c1d_sqn7}}",
            binding: 'zzlb',
            updateOn: 'blur',
            defaultI18nValue: '组织类别',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], BasicFormViewmodelForm.prototype, "zzlb", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'projectNote_3d8c3271_py4m',
            name: "{{projectNote_3d8c3271_py4m}}",
            binding: 'projectNote',
            updateOn: 'blur',
            defaultI18nValue: '备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], BasicFormViewmodelForm.prototype, "projectNote", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fgld_50d0699d_rrl8',
            name: "{{fgld_50d0699d_rrl8}}",
            binding: 'fgld',
            updateOn: 'blur',
            defaultI18nValue: '分管领导',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], BasicFormViewmodelForm.prototype, "fgld", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fzr_a214c028_qe90',
            name: "{{fzr_a214c028_qe90}}",
            binding: 'fzr',
            updateOn: 'blur',
            defaultI18nValue: '负责人',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], BasicFormViewmodelForm.prototype, "fzr", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'sszz_09fc7ea1_dyar',
            name: "{{sszz_09fc7ea1_dyar}}",
            binding: 'sszz',
            updateOn: 'blur',
            defaultI18nValue: '组织类型',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], BasicFormViewmodelForm.prototype, "sszz", void 0);
    BasicFormViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '组织管理',
            enableValidate: true
        }),
        Injectable()
    ], BasicFormViewmodelForm);
    return BasicFormViewmodelForm;
}(Form));
export { BasicFormViewmodelForm };
